﻿@using System.Collections.Generic;
@using Think.Lenovo.Com.Models;
@using Think.Lenovo.Com.Models.Users;
@using System.Web.Mvc;
@using System.Web.Mvc.Html;
<html>
<link href="/Contents/css/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no" />
<link rel="stylesheet" type="text/css" href="/Contents/resources/css/reset.css" />
<link rel="stylesheet" type="text/css" href="/Contents/resources/css/style.css" media="screen" />
<link id="color" rel="stylesheet" type="text/css" href="/Contents/resources/css/colors/blue.css" />
<script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/Scripts/lib/SerializeObject.js"></script>
<script type="text/javascript" src="/Scripts/ViewManagePower.js"></script>
<body>
    <div id="content" style="background: url(/Contents/resources/images/background.png);">
        <!-- content / right -->
        <div id="right">
            <!-- table -->
            <div class="box">
                <!-- box / title -->
                <div class="title">
                    <h5>
                       权限管理</h5>
                </div>
                <div class="table">
                    <table>
                        <tr>
                            <td>
                                权限编码
                            </td>
                            <td>
                                <input type="text" id="Code" maxlength="16" />
                            </td>
                            <td>
                                权限名称
                            </td>
                            <td>
                                <input type="text" id="Name" maxlength="50" />
                            </td>
                            <td>
                                权限描述
                            </td>
                            <td>
                                <input type="text" id="Description" />
                            </td>
                            <td>
                                <input type="button" name="" value="保存权限" onclick="SavePower();" />
                            </td>
                        </tr>
                    </table>
                    <hr />
                    <table id="userList" style="table-layout: auto;" width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center">
                                <font color='green'>权限编码</font>
                            </td>
                            <td align="center">
                                <font color='green'>权限名称</font>
                            </td>
                            <td align="center">
                                <font color='green'>权限描述</font>
                            </td>
                        </tr>
                        @{
                            foreach (PowerModel p in (LinkedList<PowerModel>)ViewData["list"])
                            {
                            <tr>
                                <td align="center">
                                    @p.Code
                                </td>
                                <td align="center">
                                    @p.Name
                                </td>
                                <td align="center">
                                    @p.Description
                                </td>
                            </tr>
                            }
                        }
                    </table>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
